package com.huiminpay.test.rocketmq.message;

import com.huiminpay.test.rocketmq.modle.OrderExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName : ConsumerSimpleObj
 * @Author : 阿泽
 * @Date: 2021/8/17 13:11
 * @Description :
 */
@Component
@RocketMQMessageListener(topic = "my-topic-obj" ,consumerGroup = "demo-consumer-group-obj")
public class ConsumerSimpleObj implements RocketMQListener<OrderExt> {
    @Override
    public void onMessage(OrderExt orderExt) {
        System.out.println(orderExt);
    }
}
